IApi.ReadOutputByte method
Reads a byte from an output of a real or simulated I/O module with a byte offset.
Namespace: IntervalZero.KINGSTAR.Base.ApiAssembly: IntervalZero.KINGSTAR.Base.Api (in IntervalZero.KINGSTAR.Base.dll) Version: 4.4.0.0
Syntax
KsReturn<byte> ReadOutputByte(
int Index,
int ByteOffset
)
Function ReadOutputByte(
Index As Integer,
ByteOffset As Integer
) As KsReturn(Of Byte)
Parameters
Index
Type: int
The index of an I/O module. Indexes are zero based. Aliases affect this parameter.
ByteOffset
Type: int
Specifies a byte offset to the location to read a byte value. The max offset is determined by OutputLength in the SlaveStatus class.
Return value
Returns a KsError code and a byte value.
Remarks
ReadOutputByte can only be called once a link is established and started.
Usable EtherCAT states
ecatOP
Examples
N/A
See also